package org.samples.service;

import java.util.List;
import java.util.Map;

import org.samples.model.ExamSubject;
import org.samples.model.ExamUser;
import org.samples.model.vo.ExamScoreVO;
import org.samples.model.vo.ExamSubjectVO;
import org.samples.model.vo.ExamTestVO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface IStudentService {
	
	public List<ExamSubjectVO> getSubjectList(ExamUser user);
	
	public ExamScoreVO getScoreById(Integer id);
	
	public Map<Integer, List<ExamTestVO>> getTestListBySubject(Integer subId, String userId);

	public ExamScoreVO calculateScore(List<Integer> answerIds, Map<String, String[]> testMap, String userId, Integer subId);

	public ExamSubject getSubjectById(Integer subId);
	
	public ExamSubjectVO getSubjectVOById(String userId, Integer subId);
	
}
